package com.ins.model.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * (AppRes)表实体类
 *
 * @author aa
 * @since 2024-05-14 16:26:49
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table("app_res")
public class AppRes extends Model<AppRes> implements Serializable {

    @Serial
    private static final long serialVersionUID = -8987582457221082474L;

    @Id(keyType = KeyType.Generator)
    private Long id;

    /**
     * 访问地址
     */
    private String url;

    /**
     * 文件名
     */
    private String name;

    /**
     * md5
     */
    @JsonIgnore
    private String md5;

    /**
     * 大小(字节数)
     */
    @JsonIgnore
    private Long size;

    /**
     * 文件类型，图片和视频
     */
    private String type;

    /**
     * 视频分钟数
     */
    private String timeLine;

    /**
     * 创建人
     */
    @JsonIgnore
    private String createBy;

    /**
     * 创建时间
     */
    @JsonIgnore
    private LocalDateTime createTime;

}

